package cn.geapi.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import cn.geapi.util.annotation.auth.AuthIgnore;

@Controller
@RestController
public class TestController {
	@AuthIgnore
	@RequestMapping("/login")
	@ResponseBody
	public Map<String, String> index(
			@RequestParam(defaultValue = "") String account,
			@RequestParam(defaultValue = "") String password) {
		System.out.println("aaaaaaaaaaaa");
		Map<String, String> map = new HashMap<String, String>();
		map.put("account", account);
		map.put("password", password);
		return map;
	}
}
